package com.it.zhangjun.design.pattern.visitor;

/**
 * @className: FruitPackage
 * @description: 水果套餐
 * @author: z00018123
 * @date: 2021/4/30
 **/
public interface FruitPackage {

    /**
     * 接受访问者
     *
     * @param visitor
     */
    void accept(Visitor visitor);

    /**
     * 计算价格
     *
     * @return
     */
    double getPrice();
}
